package com.zyfdroid.mindnote2.utils;

import android.content.Context;
import android.util.AndroidRuntimeException;

public class AppSettings {

    public static boolean transparentWindow = false;// transparent

    public static String backupContentUri = "";

    public static long lastBackupTime = -1;


    public static void loadSettings(Context ctx){
        try{
            SettingUtils.loadAllSetting(ctx,AppSettings.class);
        }catch (Exception ex){
            throw new AndroidRuntimeException(ex);
        }
    }
    public static void saveSettings(Context ctx){
        try{
            SettingUtils.saveAllSetting(ctx,AppSettings.class);
        }catch (Exception ex){
            throw new AndroidRuntimeException(ex);
        }
    }
}
